package com.better.mongodb.test.mode;

import lombok.Data;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by Administrator on 2017/11/30.
 */
@Data
@Accessors(chain = true)
public class Detail implements Serializable{
    private static final long serialVersionUID = 942116549431791887L;

    private ObjectId id;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品数量
     */
    private Long itemQty;

    /**
     * 单价
     */
    private BigDecimal price;

    @Override
    public String toString() {
        return "Detail{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", itemQty=" + itemQty +
                ", price=" + price +
                '}';
    }
}
